<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>


<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>通知公告信息</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%=path %>/css/easyui.css" />
<style>
body {
	background-color: #f1f1f1;
}

.lightBg {
	background-color: #fff;
	padding: 10px 20px;
}
</style>
<script src="<%=path %>/js/jquery1.12.4.min.js"></script>
<script src="<%=path %>/js/bootstrap.min.js"></script>
<script src="<%=path %>/js/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function() {});
</script>
</head>
<body>

	<div class="container">
		<div class="row lightBg">
			<!--标题-->
			<h2 class="pull-left">
				<img src="<%=path %>/images/logo.png" style="width: 80px;"> 智游科技项目申报系统
			</h2>
			<p class="pull-right" style="margin-top: 20px;">
				<a  href="toIndex2" class="btn btn-warning">返回首页</a>
			</p> 
		</div>
		<div class="row" style="margin-top: 20px;">
			<div class="panel panel-info">
				<div class="panel-heading">
					公告通知
					
					<div class="pull-right">
						<span>通知类型：</span> 
							<select onchange="window.location=this.value"> 
								<option value="toNotices2">    </option>	
							<option value="toNotices2?TId=${type.TId}">${type.TName}</option>
						<c:forEach items="${typeD }" var="t">
						  <c:if test="${t.TName!=type.TName }">
							<option value="toNotices2?TId=${t.TId}">
							${t.TName }
							</option>						
						  </c:if>			
						</c:forEach>
							<option value="toNotices2">所有类型</option>	
						</select>

					</div>
					
				</div>
				<div class="panel-body">
					<table class="table table-striped">
						<tbody>
						<c:forEach items="${News }" var="n">
							<tr>
								<td>${n.NTitle }</td>
								<td><fmt:formatDate value="${n.NTime }" /></td>
							</tr>
						</c:forEach>
							
						</tbody>
					</table>
					<hr>

					<form action="">
					<div class="pull-right"
						style="margin-bottom: 10px;margin-right: 20px;">
						跳转至<input type="text" name="currentPage" value="${currentPage }" class="input-sm" style="width: 50px;  ">
						<input type="hidden" name="pageSize" value="${pageSize }">
						<input type="submit" class="btn btn-primary btn-sm" value="跳转">
						共<fmt:formatNumber value="${page%pageSize==0?page/pageSize:page/pageSize+1 }" type="number" maxFractionDigits="0"></fmt:formatNumber>页/${page }条记录
						<select class="input-sm" onchange="window.location=this.value">
						   
						    <option >${pageSize }</option>
						    
							<c:if test="${pageSize==6 }">				
							<option value="toNotices2?pageSize=8">8</option>
							<option value="toNotices2?pageSize=10">10</option>
							</c:if>
							
							<c:if test="${pageSize==8 }">
							 <option value="toNotices2?pageSize=6">6</option>
							 <option value="toNotices2?pageSize=10">10</option>		
							</c:if>
							
							<c:if test="${pageSize==10 }">
							<option value="toNotices2?pageSize=6">6</option>	
							<option value="toNotices2?pageSize=8">8</option>
						
							</c:if>
							
							</select>	
					</div>
					</form>
				</div>
			</div>
		</div>
		<footer style="margin-top:40px;">
			<p class="text-center">版权归智游教育所有</p>
		</footer>
	</div>
</body>
</html>